﻿@using KRM.Core
@model KRM.Core.tblKRMRefundQuestion 
@{
    var title = Model.RefundQuestionText;
    if (title.Length > 100)
    {
        title = title.Insert(title.LastIndexOf('(') - 1, "\n");
    }
    var arrInt = new int[] {29, 30, 31, 32, 33, 22, 23};
    var answer = ViewBag.Answer as tblKRMRefundAnswer;
}
<input type="hidden" name="RefundQuestionID" value="@Model.RefundQuestionID"/>
<div class="row-fluid">
    <div class="span1"></div>
    <div class="span10 bold">
        @title
        @if (arrInt.Contains(Model.RefundQuestionID))
        {
            <input type="text" name="RefundAnswer" class="input-block-level" value="@(title.Equals("Action By:") ? ViewBag.username : answer.RefundAnswers)"/>
        }
        else
        {
            <textarea class="input-block-level" name="RefundAnswer">@(title.Equals("Action By:") ? ViewBag.username : answer.RefundAnswers)</textarea>
        }
    </div>
</div>
